package base.exa12;

public class SuperStudy {
    public static void main(String[] args) {
        Man5 me = new Man5();
        me.action();
        System.out.println(me.money);
    }
}

class People5{
    private int leg = 2;
    int money;
    public People5(){
        money = 100;
    }
    void action(){
        leg = 5;
        money = 100;
        System.out.println("I am a people");
    }
}

class Man5 extends People5{
    int height;
    int money ;
    void action(){
        money = super.money;
        System.out.println("I am a Man");
    }
}
